package threadSafe.inmethod;

public class Count { 
	/**
	 * 此时线程安全
	 * @param num
	 */
	public static  void count(int num) { 
		for (int i = 1; i <= 10; i++) {
			num += i;
		}
		System.out.println(Thread.currentThread().getName() + "总数:55-" + num);
	}
}